SystemLogShow = Ext.extend(Ext.Window, {
    formPanel : null,
    constructor : function(a) {
        Ext.apply(this, a);
        this.initComponents();
        SystemLogShow.superclass.constructor.call(this, {
            id : "SystemLogShowmWin",
            layout : "fit",
            iconCls : "menu-job",
            items : this.formPanel,
            modal : true,
            height : 300,
            width : 400,
            maximizable : true,
            title : "日志详细信息",
            buttonAlign : "center",
            buttons : this.buttons
        });
    },
    initComponents : function() {
        this.formPanel = new Ext.FormPanel({
            id : "SystemLogShowForm",
            layout : "form",
            bodyStyle : "padding:10px 10px 10px 10px",
            border : false,
            url : "",
            defaults : {
                anchor : "98%,98%"
            },
            defaultType : "textfield",
            items : [ {
                name : "id",
                xtype : "hidden",
                value : this.id == null ? "" : this.id
            }, {
                fieldLabel : "用户账号",
                name : "systemLog.userId",
                readOnly:true
            }, {
                fieldLabel : "操作",
                name : "systemLog.operation",
                readOnly:true
            }, 
            {
                fieldLabel : "操作对象",
                name : "systemLog.entityName",
                readOnly:true
            }, {
                xtype : "textarea",
                fieldLabel : "内容",
                name : "systemLog.operationDetail",
                height:100,
                readOnly:true
            }, {
                fieldLabel : "时间",
                name : "systemLog.operationTime",
                readOnly:true
            } ]
        });
        if (this.id != null && this.id != "undefined") {
        this.formPanel.loadData({
                url : __ctxPath + "/system/getSystemLog.do?id=" + this.id,
                preName : "systemLog",
                root : "result",
                success : function(form, action) {
                    
                } 
            
            });
         
        }
        this.buttons = [ {
            text : "关闭",
            iconCls : "btn-cancel",
            handler : this.cancel.createCallback(this)
        } ];
    },
    cancel : function(a) {
        a.close();
    }
  
});